package com.dd.service.Impl;

import com.dd.service.BookService;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;

@Service
public class BookServiceImpl implements BookService {

    private static final Logger logger = Logger.getLogger(BookServiceImpl.class.getName());

    @Override
    public void addBook(String bookName, String author, double price) throws InterruptedException {
        Thread.sleep(1000);
        System.out.println("实现书籍保存");
    }

    @Override
    public void updateBookByBookId(String bookName, String author, double price, int bookId) {

        System.out.println("实现书籍修改");

    }
}
